const modulesFiles = require.context('./views', true, /\.vue$/)
const modules = new Map()
modulesFiles.keys().forEach((/**@type {String} */ modulePath) => {
    const moduleName = modulePath.replace(/^\.(.*)\/\w+\.vue$/, '$1')
    const comName = modulePath.replace(/^\..*\/(\w+)\.vue$/, '$1')
    modules.has(moduleName) ? modules.get(moduleName).push(comName) : modules.set(moduleName, [comName])
})
export default modules
